package com.tidc.seaserverweb.handler;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFTable;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ：冯涛滔
 * @date ：Created in 2021/10/27 23:32
 * @description：
 * @modified By：
 * @version:
 */
public class Poi {
    public static void main(String[] args) throws IOException {
        String filepath = "C:\\Users\\14631\\Desktop\\test.docx";
        String inputPath = "C:\\Users\\14631\\Desktop\\test.xlsx";
        XWPFDocument xwpfDocument = new XWPFDocument(new FileInputStream(new File(filepath)));
        XWPFTable table = xwpfDocument.createTable();
        XSSFWorkbook wb = new XSSFWorkbook(new FileInputStream(new File(inputPath)));
        XSSFSheet sheetAt = wb.getSheetAt(0);

        
    }
}
